package com.edu.blog.service.impl;

import com.edu.blog.entity.SysUser;
import com.edu.blog.mapper.UserMapper;
import com.edu.blog.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;
    @Override
    public SysUser findUserByName(String username) {
        System.out.println(userMapper.findUserByName1("admin"));
        return userMapper.findUserByName1(username);
    }
}
